//定义一个方法，求圆的面积，且结果在方法中进行打印
//夏梓豪
//2023/04/01


package code_daicanshudefangfadingyi;

public class test3 {
    public static void main(String[] args) {
        GetYuanmianji(5);
    }

    public static void GetYuanmianji(double r) {
        double result = r*r*3.14;
        System.out.println("圆的面积为："+result);
    }
}
